package com.evil.application.strategy.reporting;

import co.elastic.clients.elasticsearch._types.aggregations.Aggregate;
import com.evil.application.enums.reporting.ReportingTypeEnum;
import com.evil.application.pojo.dto.reporting.ApplicationReportingDTO;
import com.evil.application.pojo.dto.reporting.data.ReportingDataRespDTO;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 报表类型-折线图
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
@Slf4j
@Service
@AllArgsConstructor
public class ReportingDataLineChartImpl extends ReportingDataChartAbstract {

    @Override
    public ReportingTypeEnum type() {
        return ReportingTypeEnum.LINE_CHART;
    }

    @Override
    public ReportingDataRespDTO calculation(ApplicationReportingDTO reportingDTO, Aggregate aggregations) {
        return super.calculation(reportingDTO, aggregations);
    }
}
